--
-- Lanes rockspec
--
-- Rockspec documentation:  <http://luarocks.org/en/Rockspec_format>
--
-- History:
--  AKa 19-May-2008: 0.5-0

package = "Lua Lanes"

version = "0.5-0"

source= {
    url= "file:///Users/abisoft/Slug/public/2008/MyRocks/Lanes/lanes-0.5.tgz",
    md5= "fbd2210511d90ce8e68b603f2637785b"
}

description = {
	summary= "Multithreading support for Lua",
	detailed= [[
        Lua Lanes is a portable, message passing multithreading library 
        providing the possibility to run multiple Lua states in parallel. 
        It is intended to be used for optimizing performance on multicore 
        CPU's.
    ]],
	license= "MIT/X11",
	homepage="http://kotisivu.dnainternet.net/askok/lanes/",
	maintainer="Asko Kauppi <akauppi@gmail.com>"	
}

dependencies= {
    "lua >= 5.1"    -- but not tested on 5.2, ... (obviously)
}

-- TBD: We don't want to have "make install" in the Makefile. Just "make"
--      should create 'lanes.so/dll', which has all the information within.
--      How to tell this to LuaRocks.
--
build = {
   type = "make",
   install = {
        lib= { ["lanes"]= "lanes.so" }
   }
}

-- Comparison (from Rings):
--
--[[
build = {
   platforms = {
     unix = {
        type = "make",
       	build_variables = {
         LIB_OPTION = "$(LIBFLAG)",
         CFLAGS = "$(CFLAGS) -I$(LUA_INCDIR)",
       	},
       	install_variables = {
         LUA_LIBDIR = "$(LIBDIR)",
	 LUA_DIR = "$(LUADIR)"
       	}
     },
     win32 = {
        type = "make",
       	build_variables = {
         LUA_LIB = "$(LUA_LIBDIR)\\lua5.1.lib",
         CFLAGS = "/MD $(CFLAGS) /I$(LUA_INCDIR)",
       	},
       	install_variables = {
         LUA_LIBDIR = "$(LIBDIR)",
         LUA_DIR = "$(LUADIR)",
	 BIN_DIR = "$(BINDIR)"
       	}
     }
  }
}
]]
